package com.project.service;

import com.github.pagehelper.PageInfo;
import com.project.bean.PurchaseBean;

import java.time.LocalDate;

/**
 * @author lyl
 * description:
 */
public interface IPurchaseService {
    /**
     * 根据起始日期以及供应商名称分页显示订单信息
     *
     * @param pageNum
     * @param supplierName
     * @param startDate
     * @param endDate
     * @return
     */
    PageInfo<PurchaseBean> showInfoByPage(int pageNum, String supplierName, LocalDate startDate, LocalDate endDate);

    /**
     * 根据id查找订单详情信息
     *
     * @param purchaseId
     * @return
     */
    PurchaseBean findPurchaseById(int purchaseId);
}
